package com.yunhe.tianhe.rentcars.service.impl;

import com.yunhe.tianhe.rentcars.dao.permission.AccountDao;
import com.yunhe.tianhe.rentcars.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lanyangyun
 * @version V1.0
 * @Description: //TODO
 * @date 2017/10/30 0030 上午 9:40
 */
@Service
public class IndexServiceImpl implements IndexService {
    @Autowired
    AccountDao accountDao;
    @Override
    public Boolean changePassword(Long userId, String pwd, String oldPwd) {

        int code = accountDao.changePassword(userId,pwd,oldPwd);
        Boolean result = false;
        if (code!=0){
            result = true;
        }
        return result;
    }
}
